import {
  BoxGeometry,
  MeshBasicMaterial,
  Mesh,
  MeshLambertMaterial,
} from "three";
import Base from "../Base";

export default class Box {
  constructor() {
    const base = Base.getInstance();

    const cube = new Mesh(
      new BoxGeometry(1, 1, 1),
      new MeshBasicMaterial({ color: 0x00ff00 })
    );
    cube.position.y = 0.5;

    const cube2 = new Mesh(
      new BoxGeometry(1, 1, 1),
      new MeshLambertMaterial({ color: 0x00ff00 })
    );
    cube2.position.y = 0.5;
    cube2.position.x = 3;

    base.scene.add(cube, cube2);
  }
}
